<<<<<<< HEAD
<<<<<<< HEAD
import {createRouter, createWebHashHistory, RouteRecordRaw} from 'vue-router'
import IndexPage from "../pages/IndexPage.vue"

const routes: Array<RouteRecordRaw> = [
    {
        path: '/',
        component: IndexPage
    },
    {
        path: '/:category',
        component: IndexPage
    },
    {
        path: '/about',
        name: 'about',
        component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
    },

    // 博客阅读页
    {
        path: '/blog/read',
        name: 'blogRead',
        component: () => import(/* webpackChunkName: "about" */ '../pages/blogReadPage.vue')
    },
    // 博客阅读页
    {
        path: '/blog/read/:id',
        name: 'blogRead1',
        component: () => import(/* webpackChunkName: "about" */ '../pages/blogReadPage.vue')
    },
]

const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router
=======
import { createRouter, createWebHistory, RouteRecordRaw } from "vue-router";
=======
import { createRouter, createWebHistory } from "vue-router";
>>>>>>> 9e28f0d (全新的前端项目模板，五大模块分明)
import { routes } from "@/router/routes";

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes,
});

export default router;
>>>>>>> 08164fc (基本完成前端项目初始化，实现基本的登录功能)
